import React from "react";
import {Spin} from "antd";

class TheLoading extends React.Component {
    render() {
        const {children, loading, tip} = this.props;
        return <Spin spinning={loading} tip={tip} wrapperClassName="page-loading">
            {children}
        </Spin>;
    }
}

export default TheLoading;
